<!doctype html>
<html xmlns:th="http://thymeleaf.org">
<head>
    <link rel="shortcut icon" type="image/x-icon" th:href="@{/img/admin.png}">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form th:action="@{/employees/add}" method="post" th:object="${employee}">
    <table>
        <tr>
            <td> First Name: </td>
            <td>
                <input type="hidden" name="employeeId" th:field="*{employeeId}">
                <input type="text" name="firstName" th:field="*{firstName}">
            </td>
        </tr>
        <tr>
            <td>Last Name:</td>
            <td><input type="text" name="lastName" th:field="*{lastName}"></td>
        </tr>
        <tr>
            <td>Email: </td>
            <td> <input type="email" name="email" th:field="*{email}"></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="提交"></td>
        </tr>
    </table>
</form>
</body>
</html>